package com.example.mapper;


import com.example.cache.MybatisRedisCache;
import com.example.entity.LoginUser;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@CacheNamespace(implementation = MybatisRedisCache.class)
@Mapper
public interface LoginUserMapper {

    @Select("select * from login_user where username=#{username}")
    LoginUser loginAuthor(String username);

}
